package com.example.fx.db

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.example.base.entity.LoginEntity

@Dao
interface LoginDao {
    //保存记录
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun insert(loginEntity: LoginEntity)
    @Query("select * from user_info where phone=:phone")
    fun query(phone:String):LoginEntity?
}